<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>选择评价商品</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <!--标准mui.css-->
    <link rel="stylesheet" href="${base!}/assets/front/h5/css/mui.min.css" />
    <link rel="stylesheet" href="${base!}/assets/front/h5/css/hryc.css" />
    <!--App自定义的css-->
    <!--<link rel="stylesheet" type="text/css" href="../css/app.css"/>-->
    <style>
        .mui-table-view .mui-media-object {
            line-height: 42px;
            max-width: 145px;
            height: 100px;
        }
        .jiage-text{
            font-size: 18px;
            color: red;
            margin-right:10px ;
        }
        [v-cloak]{
            display: none !important;
        }
    </style>
</head>
<body>


<header class="mui-bar mui-bar-nav top-color">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: white;"></a>
    <h1 class="mui-title" style="color: white;">
        选择要评价商品
    </h1>
</header>

<div class="mui-card" style="margin-top: 60px;" id="vue">
    <div class="mui-card-content">
        <!--#for (var og in order_goodsList) {#-->
        <ul class="mui-table-view">
            <li class="mui-table-view-cell mui-media">
                <a href="${base!}/open/h5/feedback/goFeedbackBy?orderGoodsId=${og.id!}">
                    <img class="mui-media-object mui-pull-left" src="${og.imgUrl!}">
                    <div class="mui-media-body" style="white-space:normal;">
                        <span>${og.goodsName!}</span>
                        <p class='mui-ellipsis'style="margin-top: 35px;margin-left: 0px;">
                            <!--<span class="jiage-text">￥36.00</span>-->
                            <span>数量：*${og.buyNum!}</span>
                        </p>
                    </div>
                </a>
            </li>
        </ul>
        <!--#}#-->
    </div>
</div>




<script type="text/javascript" src="${base!}/assets/front/h5/js/mui.js" ></script>
<script type="text/javascript" src="${base!}/assets/front/h5/js/vue.js" ></script>
<script type="text/javascript" src="${base!}/assets/front/h5/js/jquery-2.0.0.min.js" ></script>
<script type="text/javascript" src="${base!}/assets/decorate/pc/decoratecommon/js/layer/mobile/layer.js" ></script>
<script type="application/javascript">
    mui.init({
        swipeBack:true //启用右滑关闭功能
    });

    var vue = new Vue({
        el: '#vue',
        data: {
            content:'',
            appScore:''
        },
        created:function () {   //实例初始化创建完成执行

            // this.getvideoList()     //调用自身方法

        },
        methods:{              //定义封装方法
            //保存收货地址
            add:function () {
                var self = this;
                if(self.content == ''){
                    layerAlert("评论内容不能为空")
                    return;
                }

                $.ajax({
                    type:"POST",
                    url:"${base!}/open/h5/feedback/saveFeedback",
                    dataType:"JSON",
                    data:{
                        content:self.content,
                        appScore:self.appScore,
                        orderGoodId:'${order_goods.id!}'
                    },
                    success:function(data){
                        if (data.code == 0) {
                            window.location.href = "${base!}/open/h5/order/goOrderInfo.html?orderId=${order_goods.orderId!}";
                        } else {
                            layerAlert(data.msg)
                        }
                    }
                });

            }
        },
        watch:{     //监听器
            // carModel:function () {
            //     this.getProvince();
            // }
        }

    })

    function layerAlert(msg) {
        //提示
        layer.open({
            content: msg
            ,skin: 'msg'
            ,time: 2 //2秒后自动关闭
        });
    }

</script>
</body>
</html>
